package com.example.mvp_test;

import java.util.ArrayList;

/**
 * @Description
 * @Author xudan
 * @CreateTime 2024/4/21
 */
public class MainPresenter implements IMainBussiess.IMainPrester {
    IMainBussiess.IMainView iMainView;

    public MainPresenter(IMainBussiess.IMainView view) {
        iMainView = view;
    }

    @Override
    public void getDataFromNet() {
        ArrayList<String> strings = new ArrayList<>();
        for (int i = 0; i < 10; i++) {
            strings.add("我是网络模拟数据" + i);
            iMainView.showNetData(strings);
        }
    }
}
